{% load i18n %}
{% load socialaccount %}
{% load socialaccount_extra %}

{% get_providers as socialaccount_providers %}

{% for provider in socialaccount_providers %}
        {% if provider.id == "openid" %}
            {% for brand in provider.get_brands %}
                <a class="list-group-item" title="{{brand.name}}" href="{% provider_login_url provider.id openid=brand.openid_url process=process %}">
                    {{brand.name}}
                </a>
            {% endfor %}
        {% endif %}
        <div class="form-group">
            <a class="btn btn-default btn-block" title="{{provider.name}}" href="{% provider_login_url provider.id process=process scope=scope auth_params=auth_params %}">
                <i class="fa fa-{{ provider.name|lower }}-square fa-2x" aria-hidden="true"></i>
                {% if process == "login" %}
                    {% trans "Sign in with" %}
                {% elif process == "connect" %}
                    {% trans "Connect with" %}
                {% else %}
                    {% trans "Sign up with" %}
                {% endif %}
                {{provider.name}}
            </a>
        </div>
{% endfor %}
